﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Compass.PlanService.Infrastructure.Migrations
{
    /// <inheritdoc />
    public partial class updaatepallets : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "PalletId",
                table: "PackingItems");

            migrationBuilder.AddColumn<string>(
                name: "Height",
                table: "Pallets",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "Length",
                table: "Pallets",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "MtlNumber",
                table: "Pallets",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "Type",
                table: "Pallets",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "Width",
                table: "Pallets",
                type: "nvarchar(max)",
                nullable: true);
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "Height",
                table: "Pallets");

            migrationBuilder.DropColumn(
                name: "Length",
                table: "Pallets");

            migrationBuilder.DropColumn(
                name: "MtlNumber",
                table: "Pallets");

            migrationBuilder.DropColumn(
                name: "Type",
                table: "Pallets");

            migrationBuilder.DropColumn(
                name: "Width",
                table: "Pallets");

            migrationBuilder.AddColumn<Guid>(
                name: "PalletId",
                table: "PackingItems",
                type: "uniqueidentifier",
                nullable: true);
        }
    }
}
